home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / shutdown.man < prev    next >
Encoding:
Text File  |  1990-03-13  |  1.1 KB  |  67 lines

  1.  
  2.  
  3.  
  4. SHUTDOWN              C Library Procedures               SHUTDOWN
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      shutdown - shut down part of a full-duplex connection
  10.  
  11. SSYYNNOOPPSSIISS
  12.      sshhuuttddoowwnn((ss,, hhooww))
  13.      iinntt ss,, hhooww;;
  14.  
  15. DDEESSCCRRIIPPTTIIOONN
  16.      The _s_h_u_t_d_o_w_n call causes all or part of a full-duplex con-
  17.      nection on the socket associated with _s to be shut down.  If
  18.      _h_o_w is 0, then further receives will be disallowed.  If _h_o_w
  19.      is 1, then further sends will be disallowed.  If _h_o_w is 2,
  20.      then further sends and receives will be disallowed.
  21.  
  22. DDIIAAGGNNOOSSTTIICCSS
  23.      A 0 is returned if the call succeeds, -1 if it fails.
  24.  
  25. EERRRROORRSS
  26.      The call succeeds unless:
  27.  
  28.      [EBADF]        _S is not a valid descriptor.
  29.  
  30.      [ENOTSOCK]     _S is a file, not a socket.
  31.  
  32.      [ENOTCONN]     The specified socket is not connected.
  33.  
  34. SSEEEE AALLSSOO
  35.      connect(2), socket(2)
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0               May 15, 1985                          1
  64.  
  65.  
  66.  
  67.